Identifying implicit assumptions associated with a software product

ABSTRACT

A framework is described herein for identifying implicit assumptions associated with an SDK and its accompanying documentation (e.g., dev guide). An implicit assumption is information that is not expressly stated in the documentation, but which would be useful in assisting an application developer in building an application. The framework also describes a systematic approach for identifying one or more vulnerability patterns based on the identified implicit assumptions. An application developer may run a test on an application that is being developed to ensure that it does not have any deficiency which matches a vulnerability pattern.

BACKGROUND

An application developer may build an application that relies on a software development kit (SDK). The application developer may also consult a developer guide (simply “guide” herein) in building the application. The guide provides information regarding the recommended use of the SDK. The guide is typically produced in an ad hoc manner, e.g., based on an informal assessment of the informational needs of the application developer.

An application developer may produce a faulty application when he or she fails to follow the instructions provided in the guide. This is to be expected. In other cases, a developer may precisely follow the instructions of the guide, yet still produce a faulty application.

SUMMARY

A software development environment is described herein which includes an analysis module and a test suite production module. The analysis module analyzes a software product (e.g., an SDK) in conjunction with documentation (e.g., a dev guide) that describes a recommended use of the software product. This analysis can be used to identify at least one implicit assumption associated with the software product and the documentation. An implicit assumption corresponds to information that: (a) would be useful to the application developer in building an application that satisfies a stated objective; and (b) is not explicitly stated in the documentation. In one case, the stated objective is a security-related objective associated with a software product that performs an authentication and/or authorization operation.

The test suit production module produces a test suite that is made up of one or more vulnerability patterns. Each vulnerability pattern corresponds to an implied assumption identified by the analysis module. The application developer can test his or her application against each vulnerability pattern. This will reveal whether the application suffers from a vulnerability that is associated with the vulnerability pattern. The application developer can then modify the application in an appropriate manner to remove the vulnerability, if deemed appropriate.

Overall, the functionality described herein provides a reasoned and structured way of identifying useful information that is missing from a dev guide and/or an SDK's implementation. This facilitates the design process and yields more robust applications.

The above approach can be manifested in various types of systems, components, methods, computer readable storage media, data structures, articles of manufacture, and so on.

This Summary is provided to introduce a selection of concepts in a simplified form; these concepts are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a software product (e.g., an SDK) and documentation (e.g., a dev guide) that may accompany the software product.

FIG. 2 shows an illustrative environment in which applications may be run. At least some of these applications may rely on a service provided by a remote server.

FIG. 3 provides an example of a vulnerability that may arise due to the application developer's lack of knowledge about an implicit assumption associated with an SDK.

FIG. 4 shows an SDK development environment for analyzing an SDK and its accompanying guide. This figure also shows an application development environment for using the results provided by the SDK development environment in the course of developing an application.

FIG. 5 is a procedure which provides an overview of the functionality depicted in FIG. 4.

FIG. 6 shows one implementation of an analysis module. The analysis module is a component of the SDK development environment of FIG. 4.

FIG. 7 shows an illustrative environment in which an SDK may be used. The analysis module (of FIG. 6) operates on a model which may take into consideration the entities shown in FIG. 7.

FIG. 8 shows, in high-level form, one implementation of the analysis module of FIG. 6.

FIG. 9 is a procedure which describes one manner of operation of the analysis module of FIG. 6.

FIG. 10 is a procedure which describes further illustrative details of the operation of the analysis module of FIG. 6.

FIG. 11 is a procedure which describes further illustrative details of the operation of the analysis module of FIG. 6.

FIG. 12 shows one implementation of a testing tool provided by the application development environment of FIG. 4.

FIG. 13 is a procedure that describes one manner of operation of the application development environment of FIG. 4.

FIG. 14 shows illustrative computing functionality that can be used to implement any aspect of the features shown in the foregoing drawings.

The same numbers are used throughout the disclosure and figures to reference like components and features. Series 100 numbers refer to features originally found in FIG. 1, series 200 numbers refer to features originally found in FIG. 2, series 300 numbers refer to features originally found in FIG. 3, and so on.

DETAILED DESCRIPTION

This disclosure is organized as follows. Section A provides an overview of functionality for identifying and acting on implicit assumptions associated with a software development kit (SDK). The functionality includes an SDK development environment and an application development environment. Section B provides additional details regarding the SDK development environment. Section C provides additional details regarding the application development environment. Section D describes illustrative computing functionality that can be used to implement any aspect of the features described in the foregoing sections.

Some of the figures describe concepts in the context of one or more physical components, variously referred to as components, functionality, modules, features, elements, mechanisms, etc. An actual implementation may organize the physical components shown in the figures in any manner. For example, in one case, there may be a one-to-one correspondence between a component shown in the figures and an actual physical mechanism. Alternatively, or in addition, any single component illustrated in the figures may be implemented by plural physical mechanisms. Alternatively, or in addition, any two or more separate components in the figures may reflect different functions performed by a single actual physical mechanism.

Other figures describe the concepts in flowchart form. In this form, certain operations are described as constituting distinct blocks performed in a certain order. Such implementations are illustrative and non-limiting. Certain blocks described herein can be grouped together and performed in a single operation, certain blocks can be broken apart into plural component blocks, and certain blocks can be performed in an order that differs from that which is illustrated herein (including a parallel manner of performing the blocks).

The various components and flowchart blocks can be implemented in any manner by any physical and tangible mechanisms, for instance, by physical mechanisms running and/or storing any kind of software instructions, by hardware components (e.g., chip-implemented logic functionality), etc., and/or any combination thereof. FIG. 14, to be described in turn, provides additional details regarding one illustrative physical implementation of the components shown in the figures.

As to terminology, the phrase “configured to” encompasses any way that any kind of physical and tangible functionality can be constructed to perform an identified operation. The term “logic” encompasses any physical and tangible functionality for performing a task. For instance, each operation illustrated in the flowcharts corresponds to a logic component for performing that operation. When implemented by a computing system, a logic component represents an electrical component that is a physical part of the computing system, however implemented.

The phrase “means for” in the claims, if used, is intended to invoke the provisions of 35 U.S.C. §112, sixth paragraph. No other language, other than this specific phrase, is intended to invoke the provisions of that portion of the statute.

The following explanation may identify one or more features as “optional.” This type of statement is not to be interpreted as an exhaustive indication of features that may be considered optional; that is, other features can be considered as optional, although not expressly identified in the text. Finally, the terms “exemplary” or “illustrative” refer to one implementation among potentially many implementations.

A. Overview

FIG. 1 provides a high-level depiction of a software product 102. The software product 102 may correspond to any machine-executable content, such as computer instructions expressed in any language or combination of languages (including markup languages), parameters, settings, etc. Further, the software product 102 may organize its content in any manner. For example, the software product 102 may organize its instructions into one or more modules. In some cases, the software product 102 may represent a software development kit (SDK). To facilitate explanation, this description will henceforth refer to the software product 102 as an SDK.

An application developer may build an application that relies on the SDK in any way. For instance, without limitation, the application can use the SDK to provide one or more functions of any nature. In a more specific case, the application can use the SDK to interact with an independent system which provides one or more functions. In that non-limiting scenario, the SDK may correspond to one or more application programming interfaces (APIs) (for instance).

The application developer may receive the SDK together with documentation 104, referred to as a dev guide herein (or simply “guide” for brevity). The guide provides information that assists an application developer in using the SDK. For example, the guide may include instructions expressed in a natural language that explain the operations performed by the SDK, and the manner in which an application developer may integrate the SDK into an application under development. Alternatively, or in addition, the guide may include code examples which explain the operation and use of the SDK. In one case, the entity which produces the SDK (referred to herein as the SDK developer) also produces the guide. The SDK developer can express the guide in any form or combination of forms, such as printed material, electronic content, and so on.

The guide may be conceptualized as containing explicitly-stated information 106. Further, the SDK and the guide may be associated with zero, one or more implied assumptions 108. As the name suggests, the explicitly-stated information 106 provides instructions that are clear and explicit on their face. By contrast, each implied assumption corresponds to information that: (a) is not explicitly stated in the guide; and (b) is useful (or necessary) to an application developer in properly using the SDK. In some cases, an application developer is given no clear statement or instruction by the guide as to the existence of the implied assumptions 108. This may cause many application developers to “miss” the implied assumptions. In other cases, a skilled application developer may be able to infer an implied assumption based on information that is provided in the guide, together with his or her prior experience and knowledge. But nevertheless, it cannot be expected that all application developers will make these kinds of sophisticated inferences.

More formally stated, an implied assumption is not just any missing or hidden information, but information that an application developer relies on to achieve one or more objectives. A stated object may entail the production of an application that has certain characteristics. For example, the application developer may wish to use the SDK to perform an authentication operation and/or authorization operation. Here, the application developer will wish to gain knowledge of the implied assumption in order to produce a secure application. Otherwise, the application that is produced may be subject to attacks from malicious entities (to be described in greater below).

The presence of implied assumptions 108 in the guide (if any) may ensue from one or more factors. For example, the SDK developer may fully intend to put certain details into the guide, but may forget to do so. Alternatively, or in addition, the SDK developer may misjudge the target audience of the SDK, resulting in a failure to put sufficient detail into the guide, and/or a failure to express the detail in a form that is appropriate for the target audience. Alternatively, or addition, the SDK developer may not fully take into consideration the contextual setting in which an application developer intends to use an application. As will be described at length below, a contextual setting raises a host of issues which impacts the integrity of the application that is constructed using the SDK. More generally stated, the SDK developer may fail to produce a sufficiently detailed guide because he or she relies on an informal and ad hoc approach to developing the guide.

Whatever the cause, a guide that fails to explicitly set forth the implied assumptions 108 is not a good thing; it handicaps the application developer who relies on the guide in building his or her application, and may lead to the production of a faulty application. This problem is particularly pernicious with respect to SDKs, since many applications are constructed based on the SDKs, not just a single application.

To address this problem, a framework is described herein for determining if the SDK and guide are associated with any implied assumptions 108. The framework also incorporates various tools and tactics for addressing the presence of any detected implied assumptions 108. The goal of these tools and tactics is to: (a) eliminate or reduce the presence of the implied assumptions 108; and/or (b) detect the presence of vulnerabilities in applications which ensue from the implied assumptions 108.

This section provides an overview of the framework, while later sections provide additional details on individual parts of the framework.

To begin with, FIG. 2 sets forth an environment 202 having different entities. These entities play a role in a running illustrative example set forth herein; in that example, the application under consideration uses an SDK to perform an authentication operation and/or an authorization operation. In an authentication operation, the application establishes the identity of a user or other entity. In an authorization operation, the application is granted permissions on behalf of the user or other entity. The permissions are granted by an ID provider (to be described below).

The entities shown in FIG. 2 are coupled together using a communication mechanism 204, e.g., a wide area network (such as the Internet). The entities include a representative client device 206, together with one or more other client devices 208. Each client device can be constructed in any manner, such as a personal computer, a lap top computer, a game console device, a set-top box device, a tablet-type computer, a smartphone, an electronic media consumption device, and so on. The entities also include a representative server 210, together with one or more other servers 212. Each server can be constructed in any manner, e.g., by a server-type computer in optional conjunction with one or more data stores. The entities also include an identification (ID) provider 214. The ID provider 214 provides authentication and/or authorization-related services to applications. The ID provider 214 can be implemented in any manner, such as by one or more servers, together with one or more data stores.

Each client device may store one or more applications. For example, the representative client device 206 stores a collection of applications 216. Each of these applications 216 may perform its functions using a client runtime 218 provided by the client device 206. For example, the client runtime 218 may correspond to HyperText Markup Language (HTML) renderer functionality and a JavaScript engine.

Each server may host one or more services. For example, the server 210 hosts a collection of services 220. Each of these services 220 may perform its functions using a server runtime 222. For example, the server runtime 222 may correspond to PHP functionality or ASP.NET functionality.

Any application, running on any client device, may rely on the functionality provided by a service, running on any server. Hence, the functionality associated with this application may be split between the client device and the associated server. To cite merely one example, an application may rely on a remote service to provide image analysis functions that are too computationally-intensive to perform on the client device. These kinds of applications are referred to herein as service-reliant applications. In other cases, some applications running on a client device may not rely on any services provided by any remote server.

At least some of the applications in the environment 202 may rely on one or more SDKs. For example, an application that runs on the client device 206 may rely on client SDK 224. Further assume that this application also relies on a service provided by the server 210. That service, in turn, may rely on a service SDK 226 to perform its operations. The service SDK 226 may be viewed as the server-side counterpart of the client SDK 224.

In the running example set forth herein, at least one application relies on SDK functionality to interact with the ID provider 214. That is, the application interacts with the ID provider 214 to authenticate a user or other entity, and/or to gain authorization to perform a particular task. This kind of application may also interact with one or more remote services in the manner described above. Or this application may not interact with any remote services.

An application developer may produce any application shown in FIG. 1 in the manner described above, e.g., by making reference to a guide. If the SDK and guide are subject to one or more implicit assumptions, then the developer may produce an application having substandard performance. As noted above, in an authentication/authorization context, substandard performance may expose the application to attack by one or more malicious entities.

To illustrate the above point, consider the scenario shown in FIG. 3. Here, a victim's client device 302 includes a malicious application (“App-Bad”) 304. In a first operation (1), the application 304 may interact with the ID provider 306 by sending a login request. By virtue of that request, the application 304 asks the ID provider 306 for a token that will grant the application 304 limited authorization to access certain information. To be concrete, assume that the token grants the application 304 the right to view a user-profile associated with a particular person, such as the victim herself And further assume that the victim has previously authorized the ID provider 306 to provide this limited information to any recipient. In response, in operation (2), the ID provider 306 returns the requested token to the application 304.

Next, in operation (3), assume that the application 304 sends the token to a service 308 implemented by a remote server 310. Further assume that the application 304 attempts to trick the service 308 by asserting or implying that the application 304, which is sending the token, is the same entity that is identified by the token (which is not true). In operation (4), the service 308 can use the token to ask the ID provider 306 to send basic information that is associated with the entity identified by the token. In operation (5), the ID provider 306 provides the basic information. In operation (6), the service 308 notes that the entity identified by the basic information is the victim, and incorrectly assumes that the sender of the token is the victim. As a consequence of this mistaken association, the malicious application 304 may achieve the ability to interact with the service 308 as if it was the victim himself or herself. In actuality, the token was intended to only grant the application 304 limited authorization to view certain information, not to establish the identity of any entity.

The above problem may ensue from a poorly constructed application, which, in turn, may be the result of one or more hidden assumptions in the SDK's guide. The hidden assumption in this case may be a stipulation that the operations shown in FIG. 3 are to be performed by a single entity, rather than two or more entities in the manner shown in FIG. 3.

More generally, SDKs for service-reliant applications may be particularly prone to implicit assumptions. This is because it may be difficult for an SDK developer to take into account of all the “actors” involved in the execution of a service-reliant application. The actors include, but are not limited to, application functionality that runs on both the client device and server, SDK functionality that runs on both the client device and the server, runtime functionality that runs on both the client device and the server, and so on. For example, the SDK developer may be focusing his or her attention on the integrity of the SDK functionality itself, but the underlying runtime system(s) can also affect the security of the application that is being built based on the SDK.

FIG. 4 shows a framework 402 that includes an SDK development environment 404 for analyzing an SDK and its accompanying documentation. The framework 402 also shows an application development environment 406 for leveraging the results provided by the SDK development environment 404.

The SDK development environment 404 provides an SDK, which may be stored in a data store 408, and a guide, which may be stored in a data store 410. The SDK development environment 404 may also identify other information that pertains to the target environment in which the SDK is expected to be used, to be described below. An analysis module 412 may analyze the SDK and the guide to provide an output result. The output result can be used to determine whether there are any implicit assumptions associated with the SDK (and guide). As will be described in greater detail below, the analysis module 412 may operate by performing static analysis on a model. The model represents the SDK and the target environment in which the SDK is expected to be used. The static analysis, in turn, operates by determining whether various assertions associated with the model are violated.

In response to the identified implicit assumptions, an SDK developer may decide to modify the SDK. If successful, this will have the effect of eliminating the vulnerabilities associated with the identified implicit assumptions, and thus eliminating the existence of the implicit assumptions themselves. Alternatively, or in addition, a guide producer (who may be the same person as the SDK developer) may decide to modify the guide. This will have the effect of providing explicit instructions pertaining to the implicit assumptions, thus removing the implicit assumptions.

Alternatively, or in addition, the SDK developer can use the test suite production module 414 to produce a test suite. The test suite includes one or more vulnerability patterns. Each vulnerability pattern is associated with a particular implicit assumption identified by the analysis module 412. More specifically, a vulnerability pattern may represent the negative expression of an assumption. For example, a hidden assumption may indicate that the production of a secure application depends on operations X, Y, and Z being performed by a single entity. A corresponding vulnerability pattern may provide information which describes the situation in which these operations are not performed by the same entity. A vulnerability pattern may also specify externally observable evidence of any nature that will be produced when a hidden assumption is violated.

A data store 416 can store a final SDK, a final guide, and a test suite. This comprises a package of information. A publication module 418 may make any part of the package available to an application developer in any manner. For example, the publication module 418 may post the package to a web page. An application developer may visit that page to select and download any part of the package. In one scenario, it is expected that the application developer will wish to download the entire package.

Now referring to the application development environment 406, an application developer may use one more application tools 420 to produce an application. In doing so, the application developer may rely on information provided in the guide. A data store 422 may store the application.

In addition, the application developer may optionally test the application using a testing tool 424. The testing tool 424 determines whether the application that has been produced has any vulnerability which matches a vulnerability pattern identified by the test suite. If so, the application developer may choose to modify the application and repeat the test. The application developer may repeat these operations until he or she produces an application that is free of “bugs.”

FIG. 5 is a procedure 502 which summarizes the functionality depicted in FIG. 4. In block 504, an SDK developer develops an SDK. In block 506, a guide producer writes the guide. In block 508, the SDK developer analyzes the SDK together with the guide to determine whether there are any implicit assumptions associated with the SDK (and guide). In block 510, the SDK developer can generate a test suite based on the identified implicit assumptions. In block 510, the SDK developer can publish the SDK, the guide, and the test suite.

In block 514, an application developer can receive the SDK, the guide, and the test suite. In block 516, the application developer can produce an application using the SDK, based on information provided in the guide. In block 518, the application developer can optionally test the application that has been produced using the test suite.

B. Illustrative SDK Development Environment

FIG. 6 shows one implementation of the analysis module 412 introduced in FIG. 4. The analysis module 412 can be used to analyze any kind of SDK. But to make the explanation more concrete, assume that the analysis module 412 performs analysis on an SDK that provides an authentication and/or authorization function. In that context, the analysis module 412 seeks to determine whether an application (which is built using the SDK and guide) may expose one or more security-sensitive (SS) items to a malicious entity. Without limitation, an SS item may correspond to secrets, such as access tokens, secret codes defined by a protocol, refresh tokens, application secrets, session IDs, and so on. An SS item may also correspond to signed data provided by the ID provider 214 (of FIG. 2), such as signed messages, authentication tokens, etc.

Further, the analysis module 412 performs its security analysis by examining individual sessions between a client device and a server, rather than associations between a user and a client device, or a user and a service. That is, the end result of authentication/authorization between a client device and a server is to know whom the session represents and what the session is permitted to do. This determination will not affect the status of any other session between the same client device and server.

The analysis module 412 operates on a model 602. The model 602 represents information pertaining to the SDK and the context in which an application (which uses the SDK under consideration) is expected to be deployed. The analysis module 412 also includes a static analysis tool 604 for symbolically investigating the model 602. This yields an output result, which, in turn, may indicate the presence of zero, one or more implicit assumptions.

The model 602 expresses the context in which an application (which uses the SDK) is deployed by taking into account different actors that may play a role in interacting with the application, when the application is deployed in its intended target environment. FIG. 7 shows one such illustrative target environment 702. The environment 702 is framed from the perspective of a particular client device which may be the subject to attack from other entities. That client device is referred to herein as client-victim device 704. A person identified as a victim interacts with this device. The client-victim device 704 runs a non-malicious client application (App-Gook) 706 that is assumed to be constructed in accordance with the guide, and which is purposely installed by the victim. In one case, the non-malicious client application (App-Good_(C)) 706 relies on a client SDK 708 and a client runtime 710 to perform its functions.

The non-malicious client application (App-Good_(C)) 706 also relies on a counterpart non-malicious service application (App-Good_(S)) 712 provided by an illustrative server 714. The non-malicious service application (App-Good_(S)), in turn, relies on a service SDK 716 and a server runtime 718 to perform its functions. Finally, the client SDK 708 and the service SDK 716 may interact with ID provider functionality 720 on behalf of the non-malicious client application (App-Good_(C)) 706, but the non-malicious client application (App-Good_(C)) 706 does not directly interact with the ID provider functionality 720.

The environment 702 may also represent one or more attacking entities (also referred to herein as malicious entities) which present a potential threat to the victim. For example, the client-victim device 704 may include at least one malicious client application (App-Bad_(C)) 722 having an unknown origin and construction, and which is therefore considered as potentially malicious. As noted above, the non-malicious client application (App-Good_(C)) 706 is assumed to have been constructed in accordance with the instructions provided in the guide. In contrast, the malicious client application (App-Bad_(C)) 722 can be produced in an arbitrary manner without reference to the guide. Nevertheless, the malicious client application (App-Bad_(C)) 722 can be expected to conform to whatever constraints are imposed by the client runtime 710.

The environment 702 may also include separate attacker functionality 724 that is deployed on some client device other than the client-victim device 704. More specifically, the separate attacker functionality 724 may collectively represent the other client device in conjunction with any services with which that client device interacts.

The construction of certain modules shown in FIG. 7 is known at the time that the SDK is being analyzed. These already-constructed modules are referred to as concrete modules, and include the client SDK 708, the service SDK 716, the client runtime 710, the server runtime 718, and the ID provider functionality 720. More specifically, the client runtime 710, the server runtime 718, and the ID provider functionality 720 are complex; hence, although these modules are concrete, the functionality associated with these modules may not be fully known by the SDK developer. In contrast, the client SDK 708 and the service SDK 716 are typically relatively small programs that are publically available; hence, the functionality associated with these modules may be considered fully known by the SDK developer.

The remaining modules are considered abstract because their constitution is not yet determined. These modules include the non-malicious client application (App-Gook) 706, the non-malicious server application (App-Good_(S)), the malicious client application (App-Bad_(C)) 722, and the separate attacker functionality 724. For example, at the time that the SDK is analyzed, the SDK developer has no knowledge about the applications that an application developer will build based on the SDK. And at the time that the SDK is analyzed, the SDK developer has no knowledge about what malicious entities may pose a threat to the non-malicious client application, even those these malicious entities may already physical exist.

Returning now to FIG. 6, the model 602 may express the following information regarding the components shown in FIG. 7, or a subset thereof, or any variation thereof

Functions of the SDK and the underlying system environment. The model 602 may represent various functions performed by the client SDK 708 and the service SDK 716. In addition, the model 602 may represent various functions associated with the underlying system environment in which an application will be executed. The system environment includes the client runtime 710 employed on the client-victim device 704 and the server runtime 718 employed by the server 714. The underlying system environment may also encompass aspects of the ID provider functionality 720.

As noted above, the client SDK 708 and service SDK 716 are typically small programs. Hence, the model 602 can exhaustively express all of the functions associated with these modules. On the other hand, the underlying system environment is typically complex and encompasses a wide range of functions. The model 602 may therefore selectively capture those aspects of the system environment that are pertinent to the objective of analysis. In the running example of this section, the objective of analysis pertains to authentication and/or authorization. The model 602 will therefore focus on those aspects of the system environment which have a bearing on the security of an application which uses the SDK.

For example, the model 602 can capture that manner in which the ID functionality 720 interacts with the non-malicious client application (App-Good_(C)) 706, as controlled by various application settings. For instance, a particular ID provider may provide an interface that allows an application developer to enter various application settings, such as application ID, application secret, service website domains, return URL, etc. The model 602 can capture the manner in which these settings affect the behavior of the ID provider functionality 720. As another example, the model 602 can capture the same-origin policy of the client runtime 710. A same-origin policy defines a manner in which the client runtime 710 distinguishes between content originating from different sources. As another example, the model 602 can capture the manner in which the server runtime 718 manages sessions. These features are cited by way of example, not limitation; in other implementations, the model 602 can express other aspects of the underlying system environment.

Development Guide.

As noted above, the non-malicious application modules (App-Good_(C) 706 and App-Good_(S) 712) are abstract modules because they have a not-yet-determined construction. Hence, the model 602 cannot represent these components in the same manner as the concrete modules. Nevertheless, the model 602 can express certain constraints specified by the guide, insofar as they affect the construction of the non-malicious client application (App-Good_(C)) 706 and the non-malicious service application (App-Good_(S)) 712. That is, the guide governs which functions these modules can call and what values they can pass when making a call. The guide further expresses the expected order of function calls and the manner in which their argument values and return values are related. A call that does not follow the ordering and argument rules in the guide is considered a non-conforming call. In a sense, the guide constitutes a skeleton that all conformant applications are expected to incorporate; an application can add functions to this skeleton, but it cannot modify the skeleton.

Attacking entities. The malicious client application (App-Bad_(C)) 722 and the separate attacker functionality 724 are also abstract, meaning that their constructions are not known at the time of analysis. Further, these entities are not expected to conform to any aspect of the guide. But the model 602 can indicate that either of the malicious entities will store a security-sensitive (SS) item in a knowledge pool when they receive the SS item as a result of a function call. Hence, the knowledge pool will reflect a history of the SS items acquired by these entities. The model 602 further specifies that either of these malicious entities is capable of retrieving any SS item from the knowledge pool and using it any manner that is permitted (by any environment-specific constraints that may apply to the malicious entities).

Security Assertions.

The model 602 can also define the circumstances which constitute a violation of whatever objective that is being sought. In the running security-related example, the model 602 can express the events that constitute a security violation.

One violation pertains to authentication. Assume that some knowledge, k, is about to be added to the knowledge pool by the malicious client application (App-Bad_(C)) 722 or the separate attacker functionality 724. Further assume that k is sufficient to convince the authentication logic of the non-malicious service application (App-Good_(S)) 712 that the knowledge holder is the victim. This implies that either the malicious client application (App-Bad_(C)) 722 or the separate attacker functionality 724 can authenticate as the victim, which constitutes an authentication violation.

Another violation pertains to authorization. In one case, assume that k represents some SS item associated with the victim, such as the victim's access token, session ID (for the session between App-Good_(C) and App-Good_(S)), etc. This implies that an attacking entity has acquired the permission to perform any operations that the session is authorized to perform. In other cases, the attacking entity may acquire the permission to interact with the ID provider functionality 720 in the same manner as the victim.

Another violation pertains to association. A correct association is established when three pieces of data are correctly bound together: a user's identity (representing the outcome of authentication), the user's permissions (representing the outcome of authorization), and the session's identity (usually referred as session ID). A binding violation occurs when a malicious entity is bound to a victim in any way, e.g., by binding a malicious entity with the victim's permissions, or by binding a malicious entity's session to the victim's identity, and so on.

More specifically, the model 620 can express the security-related goals of its analysis as a set of assertions. Each assertion expresses a property that is expected to be met when an application (which uses the SDK) runs on a runtime system. The model 620 can add those assertions at appropriate junctures in the model 602. For example, the model 620 can add an assertion whenever a malicious entity attempts to add an SS item to the knowledge pool. That assertion may stipulate that the knowledge, k, being added to the knowledge pool is not a secret associated with the victim or the non-malicious application. In addition, or alternatively, an assertion may stipulate that the knowledge k cannot contain any field that indicates the identity of the victim (e.g., in the case in which the knowledge k is a piece of signed data provided by the ID provider functionality 720). In addition, or alternatively, an assertion may stipulate that no API on the ID provider functionality 720 takes k as an input and sends back the victim's identity in response. These kinds of assertions are cited way of example, not limitation.

The model 602 can also add an assertion for every binding operation in which an association is made between a user identity, a permission, and a session ID, or any pair of these data items. For example, the assertion may stipulate that, if the user ID or permission represents the victim, the session is likewise expected to be associated with the victim. Another assertion may stipulate that, if an operation binds a user ID and a permission, either both of them or neither of them are expected to represent the victim.

In terms of physical implementation, the model 602 can be formed as a program expressed in any language. The assertions may be added to particular statements in the program, at junctures in the program that have a bearing on the objective that is being sought.

The static analysis tool 604 analyzes the above-described model 602 to provide an output result, which may indicate the presence of implied assumptions, if any. The static analysis tool 604 can use any static analysis technique to perform this task. In general, static analysis involves analyzing the execution paths of a program in the symbolic domain, as opposed to dynamically executing the program.

FIG. 8 shows, in high-level form, the operation of the static analysis tool 604. A test harness 802 is associated with the abstract modules described above, including the non-malicious client application (App-Good_(C)) 706, the corresponding non-malicious service application (App-Good_(S) 712), the malicious client application (App-Bad_(C)) 722, and the separate attacker functionality 724. The test harness 802 performs operations which affect a system 804 to be tested. That system 804 includes an SDK layer 806 and an underlying system layer 808, also referred to as an underlying system environment herein. The SDK layer 806 collectively represents the client SDK 708 and the service SDK 716. The underlying system layer 808 collectively represents the client runtime 710, the server runtime 718, and the ID provider functionality 720.

In one implementation, the test harness 802 operates by non-deterministically invoking its abstract modules. The act of calling an abstract module may eventually result in a call being made to the system 804 being tested. The test harness 802 can store knowledge k in a knowledge pool 810 whenever the malicious client application (App-Bad_(C)) 722 is called, or whenever the separate attacker functionality 724 is called. The static analysis tool 604 can then determine whether this event will violate any stated assertions. In addition, the static analysis tool 604 can determine whether any invoked function will violate any binding-related assertion. The SDK developer can examine the violations, if any are detected, to determine whether there are any implied assumptions associated with the SDK.

FIG. 9 is a procedure 902 which describes one manner of operation of the analysis module 412 of FIG. 6. In block 904, the SDK development environment 404 provides a software product, such as an SDK. In block 906, the SDK development environment 404 provides documentation (e.g., a dev guide) that describes a recommended use of the SDK. In block 908, the SDK development environment 404 provides the model 602 which represents at least the SDK, the guide, and the system environment (e.g., the runtime environment(s) and the ID provider functionality, etc.). In block 910, the analysis module 412 analyzes the model 602 to determine if the model is subject to any violations (e.g., of security-related assertions), which may indicate that there are implicit assumptions associated with the SDK (and guide). In block 912, the analysis module 412 can provide an output which conveys the violations. In block 914, the SDK developer can optionally revise the SDK, and/or the guide producer can optionally modify the guide, both with the objective of eliminating or reducing the identified implied assumptions.

FIG. 10 is a procedure which describes further illustrative details of the operation of the analysis module 412 of FIG. 6, associated with block 910 of FIG. 9. In block 1002, the analysis module 412 uses the static analysis tool 604 to determine: (a) instances in which malicious entities acquire security-sensitive (SS) items; and (b) instances in which a binding operation is performed among a user identity, a permission, and a session, or any pair thereof. In block 1004, the analysis module 612 determines, based on the results of block 1002, instances in which the defined security properties are violated. In block 1006, an SDK developer or other individual determines, based on the results of block 1004, the presence of implied assumptions associated with the SDK.

FIG. 11 is a procedure 1102 which describes further illustrative details of the operation of the analysis module 412 of FIG. 6. In block 1104, the analysis module 412 initializes a depth counter to zero. In block 1106, the analysis module 412 makes a non-deterministic call to one or three functions implemented by the abstract modules, including an “App-Good_(C) Runs” 1108 function performed by the non-malicious client application (App-Good_(C)) 706, an “App-Bad_(C) Makes a Call” function 1110 performed by the malicious client application (App-Bad_(C)) 722, and an “Attacker Makes a Call” function 1112 performed by the separate attacker functionality 724. The functionality labeled “N-Det” in FIG. 11 corresponds to a non-deterministic (e.g., a random) selection of one of a plurality of possible options. If either the “App-Bad_(C) Makes a Call” function 1110 or the “Attacker makes a Call” function 1112 is called, then a function 1114 will store whatever knowledge is acquired from this call into the knowledge pool data store 810.

Each of the above-noted functions (1108, 1110, 1112) can, once called, non-deterministically select a child function. FIG. 11 indicates that the child functions include: a “App-Good_(C) calls SDK_(S)” function 1116, which indicates that the client SDK 708 is called; a “Calls App-Good_(S)” function 1118, which indicates that the non-malicious service application (App-Good_(S)) 712 is called; an “App-Bad_(C) Calls IDP” function 1120, which indicates that the ID provider functionality 720 is called; an “App-Bad_(C) Calls Runtime_(C)” function 1122, which indicates that the client runtime 710 is called; and an “Attacker Calls IDP” function 1124, which indicates that the ID provider functionality 720 is called.

Each of these child functions, when it is called, can then non-deterministically invoke a function in the underlying system layer 808 (shown in FIG. 8). Block 1126 indicates that the concrete module(s) in that system layer 808 perform appropriate functions when they are called. Because these modules are concrete, the operations within block 1126 correspond to deterministic computations.

More specifically, for each depth increment, the analysis module 412 explores all paths through the non-deterministic switches described above, e.g., based on its execution of the model 602 in the symbolic domain. This may result in the storage of knowledge in the knowledge pool data store 810. In block 1128, the analysis module 412 increments the depth counter and repeats the above-described analysis, e.g., by again exploring all paths through the non-deterministic switches, and adding any additional knowledge to the knowledge pool data store 810. The analysis module 412 repeats this operation until it reaches a final depth threshold, such as, without limitation, 5 iterations. This procedure 1102 therefore defines a bounded search. Alternatively, the analysis module 412 can perform analysis in a non-bounded manner using a theorem prover, such as the Z3 theorem provider provided by Microsoft® Corporation of Redmond, Wash.

An SDK developer, based on the results of the analysis module 412, can identify different types of implicit assumptions, depending on the nature of the SDK under consideration, its corresponding guide, and the underlying system environment. To cite merely one example, the analysis module 412 can analyze an application which relies on a service, where that service runs in a subdomain provided by a particular server. Assume that a malicious entity interacts with another subdomain on the same server. In view of certain same-origin policies that may apply within the system environment, this scenario may provide an attack path through which the malicious entity can assign a victim's identity to a session ID of its choosing. A relevant assumption for this scenario specifies that no subdomain can be owned by a malicious entity.

In closing, the running example presented in this section corresponds to the case in which the objective of analysis is to identify security-related implicit assumptions. But more generally, the analysis module 412 can analyze an SDK with respect to any objective or combination of objectives. For example, the analysis module 412 can rely on a model that has embedded assertions that pertain to resource utilization, rather than security. The SDK developer can use the analysis module 412 to determine whether the SDK is associated with any consumption-related implicit assumptions. For example, a particular assumption may indicate that a particular module is expected to be employed on a particular server in order to avoid high memory usage.

C. Illustrative Application Development Environment

FIG. 12 shows one implementation of the testing tool 424 provided by the application development environment of FIG. 4. The testing tool 424 performs tests based on a test suite comprising one or more vulnerability patterns stored in a data store 1202. The test suite production module 414 (of FIG. 4) produces the test suite. In one case, the test suite production module 414 corresponds to a conversion module or lookup table which converts each implicit assumption to a vulnerability pattern. Alternatively, or in addition, a user (e.g., the SDK developer) may generate the vulnerability patterns.

In the illustrated example, the testing tool 424 performs dynamic analysis on the applications based the vulnerability patterns. Alternatively, or in addition, the testing tool 424 can perform static analysis of the applications.

The testing tool 424 can include functionality that is spread among a client-side tester device 1204, a proxy mechanism 1206, and a server 1208. The tester device 1204 assumes the role of a client device running the application under consideration. The server 1208 plays the roles of a server that runs a service with which the application may interact. The proxy mechanism 1206 can simulate message exchanges that would be produced in an actual execution environment. The proxy mechanism 1206 also simulates the operation of the separate attack functionality 724.

In operation, client-side tester functionality 1210 first launches a client application (App_(C)) 1212, representing a non-malicious application that is constructed in accordance with a guide. This may (or may not) entail interaction with a corresponding server application (App_(S)) 1214 being tested. Server-side tester functionality 1216 may correspond to testing-related APIs or the like which allow the client application (App_(C)) 1212 to interact with the server application (App_(S)) 1214. The client application (App_(C)) 1212 may also interact with an ID provider 1218 via SDK functionality (not shown). After simulating the operation of the client application (App_(C)) 1212, the client-side tester functionality 1210 can behave as the malicious client application (App-Bad_(C)) 722 (of FIG. 7).

FIG. 13 is a procedure 1302 that describes one manner of operation of the application development environment 406 of FIG. 4. In block 1304, the application development environment 406 receives a test suite associated with a particular SDK. In block 1306, the application development environment 406 sets up a test environment, such as the configuration shown in FIG. 12. In block 1308, the application development environment 406 runs a test for each vulnerability pattern specified in test suite, e.g., by analyzing one vulnerability at a time. In block 1310, the application development environment 406 identifies any deficiencies in the application based on the results of block 1310. In block 1312, an application developer may choose to modify the application to address the shortcomings identified in block 1310.

D. Representative Computing functionality

FIG. 14 sets forth illustrative computing functionality 1400 that can be used to implement any aspect of the functions described above. For example, the type of computing functionality 1400 shown in FIG. 14 can be used to implement any aspect any client device or any server shown in FIG. 2. The type of computing functionality 1400 shown in FIG. 14 can also be used to implement any aspect of the SDK development environment 404 (such as the analysis module 412) and any aspect of the application development environment 406 (such as the testing tool 424) of FIG. 4. In one case, the computing functionality 1400 may correspond to any type of computing device that includes one or more processing devices. In all cases, the computing functionality 1400 represents one or more physical and tangible processing mechanisms.

The computing functionality 1400 can include volatile and non-volatile memory, such as RAM 1402 and ROM 1404, as well as one or more processing devices 1406 (e.g., one or more CPUs, and/or one or more GPUs, etc.). The computing functionality 1400 also optionally includes various media devices 1408, such as a hard disk module, an optical disk module, and so forth. The computing functionality 1400 can perform various operations identified above when the processing device(s) 1406 executes instructions that are maintained by memory (e.g., RAM 1402, ROM 1404, or elsewhere).

More generally, instructions and other information can be stored on any computer readable medium 1410, including, but not limited to, static memory storage devices, magnetic storage devices, optical storage devices, and so on. The term computer readable medium also encompasses plural storage devices. In many cases, the computer readable medium 1410 represents some form of physical and tangible entity. The term computer readable medium also encompasses propagated signals, e.g., transmitted or received via physical conduit and/or air or other wireless medium, etc. However, the specific terms “computer readable storage medium” and “computer readable medium device” expressly exclude propagated signals per se, while including all other forms of computer readable media.

The computing functionality 1400 also includes an input/output module 1412 for receiving various inputs (via input devices 1414), and for providing various outputs (via output devices). Illustrative input devices include a keyboard device, a mouse input device, a touchscreen input device, a gesture input device, a voice recognition mechanism, tabletop or wall-projection input mechanisms, and so on. One particular output mechanism may include a presentation device 1416 and an associated graphical user interface (GUI) 1418. The computing functionality 1400 can also include one or more network interfaces 1420 for exchanging data with other devices via one or more communication conduits 1422. One or more communication buses 1424 communicatively couple the above-described components together.

The communication conduit(s) 1422 can be implemented in any manner, e.g., by a local area network, a wide area network (e.g., the Internet), etc., or any combination thereof. The communication conduit(s) 1422 can include any combination of hardwired links, wireless links, routers, gateway functionality, name servers, etc., governed by any protocol or combination of protocols.

Alternatively, or in addition, any of the functions described in the preceding sections can be performed, at least in part, by one or more hardware logic components. For example, without limitation, the computing functionality can be implemented using one or more of: Field-programmable Gate Arrays (FPGAs); Application-specific Integrated Circuits (ASICs); Application-specific Standard Products (ASSPs); System-on-a-chip systems (SOCs); Complex Programmable Logic Devices (CPLDs), etc.

In closing, the description may have described various concepts in the context of illustrative challenges or problems. This manner of explanation does not constitute an admission that others have appreciated and/or articulated the challenges or problems in the manner specified herein. Further, the claimed subject matter is not limited to implementations that solve any or all of the noted challenges/problems.

Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. 

1-20. (canceled)
 21. A method comprising: obtaining a test suite associated with a software development kit (SDK), the test suite identifying a plurality of vulnerability patterns, wherein the plurality of vulnerability patterns are identified based at least in part on associated documentation for the SDK; and using the test suite to analyze an application produced using the SDK.
 22. The method of claim 21, wherein using the test suite comprises running a test on the application for each of the plurality of vulnerability patterns.
 23. The method of claim 21, further comprising: when the application exhibits an individual vulnerability pattern, identifying a corresponding vulnerability in the application.
 24. The method of claim 21, wherein using the test suite to analyze the application comprises dynamically analyzing the application.
 25. The method of claim 21, wherein using the test suite to analyze the application comprises statically analyzing the application.
 26. The method of claim 21, wherein using the test suite to analyze the application comprises testing functionality performed by a client device executing the application.
 27. The method of claim 21, wherein using the test suite to analyze the application comprises testing functionality performed by a server executing the application.
 28. A system comprising: one or more processing devices; and at least one computer readable storage medium storing computer readable instructions which, when executed by the one or more processing devices, cause the one or more processing devices to: provide a test suite associated with a software product, the test suite identifying a plurality of vulnerability patterns, wherein the plurality of vulnerability patterns are identified based at least in part on associated documentation for the software product; obtain an application produced using the software product; and identify at least one vulnerability pattern present in the application by using the test suite to perform an analysis of the application.
 29. The system of claim 28, wherein the computer readable instructions, when executed by the one or more processing devices, cause the one or more processing devices to: simulate message exchanges involved in executing the application in an actual execution environment.
 30. The system of claim 28, wherein the computer readable instructions, when executed by the one or more processing devices, cause the one or more processing devices to: simulate operation of attack functionality on the application.
 31. The system of claim 28, wherein the computer readable instructions, when executed by the one or more processing devices, cause the one or more processing devices to: behave as a malicious client application that executes with the application on a client device.
 32. The system of claim 28, wherein the associated documentation comprises a natural language developer's guide for the software product.
 33. The system of claim 32, wherein the software product is a software development kit (SDK).
 34. A system comprising: a processing device configured via computer readable instructions to implement a testing environment, wherein the testing environment is configured to: obtain an application produced using a software product; and perform a test on the application to identify a particular vulnerability pattern present in the application, wherein the particular vulnerability pattern is identified in an instance when the application has been constructed consistently with an assumption expressed in a natural language developer's guide for the software product.
 35. The system of claim 34, wherein the application calls various functions of the software product.
 36. The system of claim 35, wherein the application calls the various functions in accordance with a skeleton expressed in the natural language developer's guide for the software product.
 37. The system of claim 34, wherein the software product is a software development kit.
 38. The system of claim 34, wherein the test indicates that the application adds a security-sensitive item to a knowledge pool.
 39. The system of claim 38, wherein the security-sensitive item is an access token.
 40. The system of claim 38, wherein the security-sensitive item is a session identifier. 